<?php
namespace CHOMP\CRUDSGIBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
use Hautelook\AliceBundle\Alice\DataFixtureLoader;
use Nelmio\Alice\Fixtures;

class DataLoaderController extends Controller
{
    public function loadAction()
    {
		$objectManager = $this->getDoctrine()->getManager();
	    $objects = \Nelmio\Alice\Fixtures::load(__DIR__.'/datos.yml', $objectManager, array('locale' => 'es_AR'));
		return new Response('Created');
    }
}